package com.hsgene.version.exception;

import com.hsgene.common.util.exception.ErrorCode;

/**
 * @Description: //TODO
 * @ProjectName: hdas-geneshop
 * @Package: com.hsgene.version.exception
 * @Author: 江承良
 * @CreateDate: 2019/1/18 11:03
 * @Version: 1.0
 * Copyright: Copyright (c) 2019
 */
public enum VersionErrorCode implements ErrorCode {
    DATE_LESS_THAN_NOW(5001,"DATE_LESS_THAN_NOW","发布日期不能小于当前日期"),
    VERSION_NUMBER_REPEAT(5001,"VERSION_NUMBER_REPEAT","版本号已存在请重新输入"),
    VERSION_NO_IS_NOT_NULL(61000, "VERSION_NO_IS_NOT_NULL", "版本号不能为空");

    private int code;

    private String message;

    private String desc;

    VersionErrorCode(int code, String message, String desc){
        this.code = code;
        this.message = message;
        this.desc = desc;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public String getDescription() {
        return desc;
    }
}
